#include <STC15F2K60S2.H>



void Timer2Init(void)		//1000微秒@11.0592MHz
{
	AUXR |= 0x04;		//定时器时钟1T模式
	T2L = 0xCD;		//设置定时初值
	T2H = 0xD4;		//设置定时初值
	EA = 1;
	IE2 |= 0X04;	//允许产生中断
	AUXR |= 0x10;		//定时器2开始计时
}

//模板

//void Timer2()interrupt 12 using 1
//{
//	T2L = 0xCD;		//设置定时初值
//	T2H = 0xD4;		//设置定时初值
//	
//}